.SUFFIXES: .cpp .o
.PHONY: clean all

CC = g++

LIBS = -std=c++11 -lpthread #-L /home/wangpeng/wangpengworked/work_space/lib/lib -levent

CFLAGS = -Wall -g

SRCS = threadpool2.cpp

OBJS = $(SRCS:.cpp=.o)

EXEC = threadpool2


$(EXEC):$(OBJS)

	$(CC) $(CFLAGS) $^ -o $@ $(LIBS)

%.o:%.cpp

	$(CC) $(CFLAGS) -c $< -o $@

clean all:

	rm -rf *.o $(EXEC)

